FilterEverything\Filter\FilterFields D

Total Complexity 271
Dependencies 4
Dependents 3
Total lines 1,767
Lines of code 1,304
Logical lines of code 603
Comment lines 169
Methods 39
Properties 5

Methods 39

Method Rating Maintainability Complexity Lines of code
validateTheFilter()
D
18
65 225
prepareFilterInputsToDisplay()
D
23
54 159
setupDefaultFields()
A
25
1 253
sanitizeFilterFields()
A
43 11 49
sendDateFormats()
A
44 10 42
entityBelongsToPostType()
A
50 10 29
validateFilters()
A
50 10 26
sendExcludedTerms()
A
47 9 36
ajaxDeleteFilter()
A
50 9 28
ajaxValidateFilters()
A
50 9 26
pushError()
A
54 8 22
getFilterNames()
S
52 7 23
addSpinnerToDateFormats()
S
55 6 19
getDateFormatOptions()
S
48 4 34
fillErrorsMessages()
S
58 5 15
deleteRelatedFilters()
S
56 4 18
getErrorsList()
S
40 1 60
saveFilter()
S
49 3 30
getFiltersInputs()
S
62 4 11
getFieldsByType()
S
63 4 10
addSpinnerToSelect()
S
59 3 14
filterBelongsToPostType()
S
61 3 12
getPossibleDateFormats()
S
55 2 22
prepareFilterCheckboxFields()
S
64 3 10
deleteFilter()
S
65 3 10
getErrorCodes()
S
66 3 9
isTaxonomyBelongsToPostType()
S
65 3 9
registerHooks()
S
60 2 12
getInsteadEntityField()
S
57 1 16
addCustomDateFormatField()
S
67 2 8
generateInputName()
S
68 2 7
getErrorMessage()
S
69 2 7
getErrors()
S
72 2 6
getOrderByOptions()
S
59 1 14
getEmptyFilterObject()
S
62 1 11
getViewOptions()
S
62 1 11
getFieldsMapping()
S
82 1 3
generateInputID()
S
78 1 3
__construct()
S
73 1 5